from flask import Flask
from flask.ext.wtf import CSRFProtect
from redis import StrictRedis
from flask.ext.sqlalchemy import SQLAlchemy
from flask_session import Session
##可以用来指定session保存的位置
from flask_script import Manager
from flask_migrate import MigrateCommand,Migrate
from finfo import create_app,db
from config import Config

app = create_app("development")
Migrate(app,db)

manage = Manager(app)
manage.add_command("db",MigrateCommand)


if __name__ == '__main__':
    manage.run()
